package com.fr.report.script.function;

import com.fr.report.script.Function;
import com.fr.report.script.Function.Type;
import com.fr.report.script.NormalFunction;
import java.util.Calendar;

public class TODAY extends NormalFunction
{
  public Object run(Object[] paramArrayOfObject)
  {
    Calendar localCalendar = Calendar.getInstance();
    return localCalendar.getTime();
  }

  public Function.Type getType()
  {
    return Function.DATETIME;
  }

  public String getCN()
  {
    return "TODAY():获取当前日期。\n示例：\n如果系统日期是2005年9月10日\n则TODAY()等于2005/9/10。";
  }

  public String getEN()
  {
    return "TODAY(): Returns the serial number of the current date. \n\nExample:\n   If the system date is September 10, 2005, then TODAY() = 2005/9/10.";
  }
}